package objects;

public class School {
	
    private Integer id;
    private String name;
    private String address;
    private String owner;

	public School() {
		id = 0;
    	name = "";
    	address = "";
    	owner = "";
	}
	
    public School(Integer newid) {
        id = newid;
        name = "";
        address = "";
        owner = "";
    }

	public void setID(Integer newid) {
		id = newid;
	}

	public void setName(String newname) {
		name = newname;
	}

    public void setAddress(String newaddress) {
        address = newaddress;
    }

    public void setOwner(String newownder) {
        owner = newownder;
    }
	
	public Integer getID() {
		return id;
	}
	
	public String getName() {
		return name;
	}

	public String getAddress() {
		return address;
	}
	
	public String getOwner() {
		return owner;
	}
	
	public void display() {
		System.out.println("School ID " + id);
        System.out.println("Name: " + name);
        System.out.println("Address: " + address);
        System.out.println("Owner: " + owner);
	}

}
